package com.hmdp.utils;

/**
 * @Author Mr.Wen
 * @Version 1.0
 */
public interface Ilock {
    /**
     * 尝试获取锁
     *
     * @return
     */
    boolean tryLock(long timeoutSec);

    /**
     * 释放锁
     */
    void unLock();
}
